package system.security.service;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import system.security.entity.Resource;


public interface ResourceService<T> {
	
	public T getById(int id);

	public void save(T t) throws Exception;
	
	public T findByName(String name);
	
	public List<T> getAll();
	
	public void delete(int id);
	
	public void delete(T t);	
	
}
